#include "seat.h"

Seat::Seat() {}

Seat::Seat(int id, QString seatNumber, QString trayNumber, QString seatDirection, QString note)
{
    this->id = id;
    this->seatNumber = seatNumber;
    this->trayNumber = trayNumber;
    this->seatDirection = seatDirection;
    this->note = note;
}

Seat &Seat::operator=(Seat &other)
{
    this->id = other.id;
    this->seatNumber = other.seatNumber;
    this->trayNumber = other.trayNumber;
    this->seatDirection = other.seatDirection;
    this->note = other.note;
    return *this;
}

QString Seat::toString()
{
    return QString("%1,%2,%3,%4,%5")
        .arg(id)
        .arg(seatNumber)
        .arg(trayNumber)
        .arg(seatDirection)
        .arg(note);
}
